<?
$fsock = @fsockopen($_GET['server'], 80, $errno, $errstr, 30);

	$image = imagecreate(42,13);
	$color_bg = imagecolorallocate($image,2,2,2);
	$color_text = imagecolorallocate($image,0,0,0);
	imagecolortransparent($image,$color_bg);

	if($fsock){
		$text = "ONLINE";
		fclose($fsock);
	}
	else $text = "OFFLINE";

	imagestring($image,2,0,0,$text,$color_text);

	header("Content-type: image/png");

	imagepng($image); 
?> 